package schoolWork.work02;

public class Java_3Demo {
    public static void main(String[] args) {
        Java_3 p = new Java_3(5,5);

        System.out.println("x="+p.x+" y="+p.y);
        System.out.println("Location is"+p.toString());

        p.translate(3,4);
        System.out.println("x="+p.x+" y="+p.y);
        System.out.println("Location is"+p.toString());
    }
}
